package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.dto.InstallDto;
import com.woniuxy.light_smart.entity.Install;
import com.woniuxy.light_smart.mapper.InstallMapper;
import com.woniuxy.light_smart.service.InstallService;
import com.woniuxy.light_smart.vo.InstallVo;
import com.woniuxy.light_smart.vo.updateInstallVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class InstallServiceImpl implements InstallService {
    @Autowired
    private InstallMapper installMapper;
    @Override
    public List<InstallVo> selectAll(InstallDto d) {
        return installMapper.selectAll(d);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return installMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertDto(InstallDto d) {
        return installMapper.insertDto(d);
    }

    @Override
    public int insertSelective(Install d) {
        return installMapper.insertSelective(d);
    }

    @Override
    public updateInstallVo selectByPrimaryKey(Long id) {
        return installMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(InstallDto record) {
        return installMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<Install> sel() {
        return installMapper.sel();
    }
}
